import { ApiProperty } from '@nestjs/swagger';

export class UpdateLogDto {
  @ApiProperty({ type: 'string', description: 'id' })
  id: string;
  @ApiProperty({ type: 'string', description: '错误日志' })
  errorData: string;
  @ApiProperty({
    type: 'string',
    description: '操作用户',
    required: false,
  })
  userAccount: string;
  @ApiProperty({
    type: 'string',
    description: '前端报错路由',
    required: false,
  })
  routerClient: string;
  @ApiProperty({
    type: 'string',
    description: '报错接口',
    required: false,
  })
  routerService: string;
  @ApiProperty({
    type: 'string',
    description: '请求方法',
    required: false,
  })
  requestMethods: string;
  @ApiProperty({
    type: 'string',
    description: '客户端操作系统',
    required: false,
  })
  systemClient: string;
  @ApiProperty({
    type: 'string',
    description: '服务器操作系统',
    required: false,
  })
  systemServer: string;
  @ApiProperty({
    type: 'string',
    description: '客户端IP',
    required: false,
  })
  ipClient: string;
  @ApiProperty({ type: 'string', description: '参数', required: false })
  params: string;
  @ApiProperty({ type: 'string', description: '错误代码', required: false })
  code: string;
  @ApiProperty({
    type: Number,
    description: '删除标记 0-未删除 1-删除',
    default: 0,
    required: false,
  })
  isDelete: number;
}
